Skip to content

Add auto classification of website types#2

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-auto-classification-websites
Draft

Add auto classification of website types#2
Copilot wants to merge 4 commits intomainfrom
copilot/add-auto-classification-websites

Conversation

Copy link

Copilot AI commented Jan 7, 2026

Implements automatic categorization of tracked websites into 12 semantic categories (Social Media, Productivity, Entertainment, News, Shopping, Development, Education, Finance, Health, Gaming, Communication, Uncategorized).

Changes

Core Classification

  • Added WebsiteCategory enum and classifyWebsite() utility with pattern matching for 150+ domains
  • Extended Tab entity with category field, defaulting to Uncategorized
  • Migration logic in TabsRepository.initAsync() classifies existing tabs on extension startup

UI Integration

  • Enhanced BadgeIcons component with color-coded category badges (11 unique colors)
  • Updated data flow: TabListTabItemBadgeIcons to propagate category information
  • Added i18n strings for all categories across 6 languages (EN, ES, DE, RU, JA, ZH_CN)

Example Classification

classifyWebsite('github.com')        // → WebsiteCategory.Development
classifyWebsite('youtube.com')       // → WebsiteCategory.Entertainment
classifyWebsite('unknown-site.com')  // → WebsiteCategory.Uncategorized

Categories appear as small colored badges next to website URLs in the tracker UI. Classification is persistent and happens once per domain.

Original prompt

This section details on the original issue you should resolve

<issue_title>Feature : add auto classification of websites types</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add auto classification feature for website types Add auto classification of website types Jan 7, 2026
Copilot AI requested a review from noam-sc January 7, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature : add auto classification of websites types

2 participants